package com.paul.sys.service.impl;

import com.paul.sys.mapper.VidiconInfoMapper;
import com.paul.sys.model.VidiconInfo;
import com.paul.sys.service.VidiconInfoService;
import com.paul.sys.tools.CommPageBean;
import com.paul.sys.tools.PageData;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * Created by yangjianbo on 2015/11/20.
 */
public class VidiconInfoServiceImpl implements VidiconInfoService {

    @Autowired
    private VidiconInfoMapper vidiconInfoMapper;

    @Override
    public PageData<VidiconInfo> listByPage(Map<String, String> param) {
        PageData<VidiconInfo> pageData = new PageData<VidiconInfo>();
        CommPageBean pageBean = CommPageBean.getPageBeanByParam(param);
        List<VidiconInfo> list = vidiconInfoMapper.listByPage(param, pageBean);
        pageData.setPageBean(pageBean);
        pageData.setListData(list);
        return pageData;    }
}
